package com.jiyun.passenger.service.impl;

import com.jiyun.passenger.mapper.CityMapper;
import com.jiyun.passenger.service.CityService;
import com.jiyun.pojo.BaseCityGradeManage;
import com.jiyun.pojo.BaseCityGradeManageVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.stream.Collectors;

import static org.apache.logging.log4j.ThreadContext.peek;

@Service
@Slf4j
public class CityServiceImpl implements CityService {
    @Autowired
    CityMapper cityMapper;

    public List<BaseCityGradeManage> findByCityList(BaseCityGradeManage  baseCityGradeManage) {
        List<BaseCityGradeManage> baseCityGradeManages = cityMapper.findByCityList(baseCityGradeManage);

        return baseCityGradeManages;
    }

}
